package blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author jjpzh
 * @since 2023-02-25
 */
@Data
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("type_id")
    private Integer typeId;
    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章概要
     */
    @TableField("simple_content")
    private String simpleContent;

    /**
     * 浏览量
     */
    private Integer visits;



    /**
     * 默认为0.数字越大优先级越高
     */
    private Integer sort;


    @TableField(fill = FieldFill.INSERT, value = "create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;




}
